<template>
	<a-row>
		<a-col :span='8'>
			<a-card  >
			    img <br>
			    姓名：{{form.name}} <br>
			    账户名/手机号：{{form.mobile}} <br>
			    性别：{{form.gender | gender}} <br>
			    邮箱：{{form.email}} 
			    <a-divider dashed />
			    会员积分：156分 <br>
			    会员等级：黄金会员 
			    <a-divider dashed />
			    注册日期：{{form.createTime | formDate}}
			</a-card>
		</a-col>
		<a-col :span='16'>

		</a-col>
	</a-row>
</template>

<script type="text/javascript">
	import { getUserInfo } from '@/api/minipro/customer'
	export default{
		name:'customerDetail',
		data(){
			return {
				form:{ }
			}
		},
		created(){
			this.pageInit(this.$route.query.code)
		},
		methods:{
			pageInit(code){
				getUserInfo(code).then((res)=>{
					this.form = res.data.data
				})
			}
		}
	}
</script>